﻿
@{
    ViewData["Title"] = "Device";
}

@model DeviceViewModel;
<form class="form-horizontal" method="post">
    <div class="form-group">
        <label for="DeviceId" class="col-sm-2 control-label">IoT设备ID</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" asp-for="DeviceId" id="DeviceId" value="@Model.DeviceId" placeholder="IoT设备ID">
        </div>
    </div>
    <div class="form-group">
        <label for="Secret" class="col-sm-2 control-label">密钥</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" asp-for="Secret" id="Secret" value="@Model.Secret" placeholder="设备密钥">
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-success">保存</button>
        </div>
    </div>
    <div class="form-group">
        <p class="lead">@ViewBag.Message</p>
    </div>
</form>
